package com.ebring.shareEducation.dao;

import com.ebring.shareEducation.bean.Institution;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface InstitutionMapper  extends Mapper<Institution> {

    // 查询总行一级机构
    List<Institution> selectInstitution();
    
    //查询下级机构的数量
	Integer selectGetLowerCount(@Param("institutionId") String institutionId);
	
	//查询一级机构与数量
	Integer selectOneCount(@Param("institutionId") String institutionId);
	
	//查询机构级别的数量
	Integer selectLevelCount(@Param("institutionLevel") String institutionLevel);

	//根据机构id查询
	Institution selectByPKey(@Param("institutionId") String institutionId);
}
